package 线性结构.bean;

public class Person {
    public String name;
    public String age;

    public Person(String name, String age) {
        this.name = name;
        this.age = age;
    }

    @Override
    protected void finalize() throws Throwable {
        super.finalize();

        System.out.println("Person finalize name:"+name);
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
